home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13310 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.eiffel,comp.lang.c,comp.lang.c++,comp.object,comp.software-eng
  4. Subject: Re: Beware of "C" Hackers -- A rebuttal to Bertrand Meyer
  5. Date: 24 Mar 1996 14:24:52 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4j4i3kINNi1a@keats.ugrad.cs.ubc.ca>
  8. References: <1995Jul3.034108.4193@rcmcon.com> <jmaling-2303960413010001@slwol1p47.ozemail.com.au> <4iv933INN7f2@keats.ugrad.cs.ubc.ca> <slrn4l9gov.2hg.crawford@kloognome.cris.com>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <slrn4l9gov.2hg.crawford@kloognome.cris.com>,
  12. Robert Crawford <crawford@iac.net> wrote:
  13. >Kazimir Kylheku <c2a192@ugrad.cs.ubc.ca> wrote:
  14. >>If you are a master in this paradigm, OO doesn't strike you as anything ``Zen
  15. >>like'', but as a marginal improvement in some aspects of design  and
  16. >>implementation that's generally not worth the hassle. You can benefit from 
  17. >>OO approaches even ifyou use languages like C and Modula 2. You don't need the
  18. >>extra linguistic frills to benefit from the useful concepts of the paradigm.
  19. >
  20. >    Let me add that I've seen this done -- I'm working on a
  21. >project that incorporated a lot of features that look, act, and read
  22. >like objects. They just happen to be written in plain C.
  23.  
  24. I do the same thing. I once switched to Modula 2 and later back to C. I found
  25. no problems bringing in concepts from modula 2, except for visibility
  26. operators: the ability to reference an object using module_name.member_name, or
  27. optionally to import the member explicitly and then dispense with the extra
  28. qualifier.
  29.  
  30. I once wrote an assembly language module which completely conformed to the
  31. Modula 2 conventions. I hacked the compiler's object format, and named my
  32. assembler symbols so that they behaved just like Modula 2 objects with respect
  33. to the module.member name space convention.
  34.  
  35. I made an interface specification in the DEF file, and everything worked
  36. properly: abstract data typing with assembly language. The same could be done
  37. with OO.
  38.  
  39. >    We didn't have a C++ compiler, and we only had 3.5 trained C
  40. >programmers, let alone anyone with enough experience in C++ to carry
  41. >everyone else.
  42.  
  43. Which shows that all kinds of factors are involved in language choice, not just
  44. techno-weenie justifications.
  45. -- 
  46.  
  47.